function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      width: 120,
      title: '功能',
      align: 'center',
      dataIndex: 'stageName',
      key: 'stageName'
    },
    {
      width: 150,
      title: '人员',
      align: 'center',
      dataIndex: 'createName',
      key: 'createName'
    },
    {
      title: '操作',
      align: 'center',
      dataIndex: 'commit',
      key: 'commit'
    },
    {
      width: 150,
      title: '时间',
      align: 'center',
      dataIndex: 'createTime',
      key: 'createTime'
    }
  ]
  return cols
}

export default columns